<template>
   <view class="content">
        <!-- <view v-if="seen">现在你看到我了(*￣︶￣)</view>
        <view v-else>你看不到我了</view>
        -->

        
        
        
        <template v-if="seen">
            <view>标题</view>
            <view>内容：现在你看到我了</view>
        </template>
        <button @click="onclicked">点击切换</button>
        
    </view>
    
    
    
</template>

<script>
    export default {
        data() {
            return {
                seen: true
            }
        },
        methods: {
            onclicked() {
                this.seen = !this.seen;
            }
        }
    }
</script>

<style>
   
</style>
